package cn.ruicz.demo.ui.main;

import cn.ruicz.basecore.base.BaseViewModel;
import cn.ruicz.demo.BR;
import cn.ruicz.demo.R;
import cn.ruicz.demo.databinding.ActivityDemoBinding;


import cn.ruicz.basecore.base.BaseActivity;

/**
 * Created by goldze on 2017/7/17.
 */

public class DemoActivity extends BaseActivity<ActivityDemoBinding, BaseViewModel> {

    @Override
    public int getLayoutId() {
        return R.layout.fragment_container;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public void init() {
        loadRootFragment(R.id.fl_container, new DemoFragment());

        setSwipeBackEnable(false);
    }

}
